#pragma once
#include "TCharSupport.h"
#include "EpilExpressionCodeBase.h"
#include "EpilFieldRecordInitializerCodeBase.h"


class EpilFieldKeyInitializerCode : public EpilFieldRecordInitializerCodeBase
{
	EPIL_CODE_DECL( FieldKeyInitializer );

public:
	EpilFieldKeyInitializerCode( const EpilLexLocation & location );
	virtual ~EpilFieldKeyInitializerCode();

	tstring								GetKey() const									{ return m_key; }
	void								SetKey( const tstring & key )					{ m_key = key; }

	virtual tstring						ToEpilCode( int indent = 0 ) const;
	
private:
	tstring								m_key;
};